import service from '@/utils/request'

// @Tags FdArticleAudio
// @Summary 创建FdArticleAudio
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdArticleAudio true "创建FdArticleAudio"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /fdArticleAudio/createFdArticleAudio [post]
export const createFdArticleAudio = (data) => {
  return service({
    url: '/fdArticleAudio/createFdArticleAudio',
    method: 'post',
    data
  })
}

// @Tags FdArticleAudio
// @Summary 删除FdArticleAudio
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdArticleAudio true "删除FdArticleAudio"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /fdArticleAudio/deleteFdArticleAudio [delete]
export const deleteFdArticleAudio = (data) => {
  return service({
    url: '/fdArticleAudio/deleteFdArticleAudio',
    method: 'delete',
    data
  })
}

// @Tags FdArticleAudio
// @Summary 删除FdArticleAudio
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除FdArticleAudio"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /fdArticleAudio/deleteFdArticleAudio [delete]
export const deleteFdArticleAudioByIds = (data) => {
  return service({
    url: '/fdArticleAudio/deleteFdArticleAudioByIds',
    method: 'delete',
    data
  })
}

// @Tags FdArticleAudio
// @Summary 更新FdArticleAudio
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FdArticleAudio true "更新FdArticleAudio"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /fdArticleAudio/updateFdArticleAudio [put]
export const updateFdArticleAudio = (data) => {
  return service({
    url: '/fdArticleAudio/updateFdArticleAudio',
    method: 'put',
    data
  })
}

// @Tags FdArticleAudio
// @Summary 用id查询FdArticleAudio
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.FdArticleAudio true "用id查询FdArticleAudio"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /fdArticleAudio/findFdArticleAudio [get]
export const findFdArticleAudio = (params) => {
  return service({
    url: '/fdArticleAudio/findFdArticleAudio',
    method: 'get',
    params
  })
}

// @Tags FdArticleAudio
// @Summary 分页获取FdArticleAudio列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取FdArticleAudio列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /fdArticleAudio/getFdArticleAudioList [get]
export const getFdArticleAudioList = (params) => {
  return service({
    url: '/fdArticleAudio/getFdArticleAudioList',
    method: 'get',
    params
  })
}
